//
//  WHBaseViewCOntroller.m
//  AddressBook
//
//  Created by  on 2020/7/29.
//  Copyright © 2020 wh. All rights reserved.
//

#import "WHBaseViewController.h"

@implementation WHBaseViewController

- (void)searchDataWithName:(NSString *)name
{

}

- (void)setRightBarButtonItemTitle:(NSString *)title
{
    UIBarButtonItem *rightButtonItem = [[UIBarButtonItem alloc] initWithTitle:title style:UIBarButtonItemStylePlain target:self action:@selector(rightButtonAction)];
    self.navigationItem.rightBarButtonItem = rightButtonItem;
}

- (void)setLefttBarButtonItemTitle:(NSString *)title
{
    UIBarButtonItem *leftButtonItem = [[UIBarButtonItem alloc] initWithTitle:title style:UIBarButtonItemStylePlain target:self action:@selector(leftButtonAction)];
    self.navigationItem.leftBarButtonItem = leftButtonItem;
}
//导航栏右边按钮点击事件。子类实现
-(void)rightButtonAction
{
    
}
//导航栏左边按钮点击事件。子类实现
-(void)leftButtonAction
{
    
}
@end
